<template>
    <el-input v-model="form[option.prop]" v-bind="option.element" :disabled="isDisabled"></el-input>
</template>
<script setup lang="ts">
import { computed } from 'vue';

defineOptions({ name: 'XklInput' })
const props = defineProps(['form', 'option'])
const { form, option } = props

const isDisabled = computed(() => option.element.disabled)

</script>